<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/11/3
  Time: 15:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Map<String,Object> queInfo = (Map<String,Object>)request.getAttribute("queInfo");
    Integer id = (Integer)queInfo.get("id");
    String question = (String)queInfo.get("question");
    String optionA = (String)queInfo.get("optionA");
    String optionB = (String)queInfo.get("optionB");
    String optionC = (String)queInfo.get("optionC");
    String optionD = (String)queInfo.get("optionD");
%>
<center>
    <form action="http://localhost:8080/onlineSystem/ModifyQue" id="form">
        <input type="hidden" value="${requestScope.queInfo.id}" name="id">
        <table>
            <tr>
                <td>题目</td>
                <td><input type="text" name="question" value="${requestScope.queInfo.question}" id="question"/></td>
            </tr>
            <tr>
                <td>选项A</td>
                <td><input type="text" name="optionA" value="${requestScope.queInfo.optionA}" id="optionA"/></td>
            </tr>
            <tr>
                <td>选项B</td>
                <td><input type="text" name="optionB" value="${requestScope.queInfo.optionB}" id="optionB"/></td>
            </tr>
            <tr>
                <td>选项C</td>
                <td><input type="text" name="optionC" value="${requestScope.queInfo.optionC}" id="optionC"/></td>
            </tr>
            <tr>
                <td>选项D</td>
                <td><input type="text" name="optionD" value="${requestScope.queInfo.optionD}" id="optionD"/></td>
            </tr>
            <tr>
                <td>正确答案</td>
                <td><input type="radio" name="answer" value="A" checked/>A
                    <input type="radio" name="answer" value="B"/>B
                    <input type="radio" name="answer" value="C"/>C
                    <input type="radio" name="answer" value="D"/>D</td>
            </tr>
            <tr>
                <td><input type="submit"/></td>
            </tr>
        </table>
    </form>
</center>
